package com.example.cloud.model.basic;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * Created by wangtao on 2018/6/5.
 * 病房(家庭)
 */
@Entity(name = "basic_home")
@Data
@EqualsAndHashCode(callSuper = false)
public class Home extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 病房名称
    @Column(name = "name")
    private String name;
    // 治疗时长
    @Column(name = "duration")
    private int duration;
    // 价格
    @Column(name = "price")
    private BigDecimal price;
    // 用于治疗价格
    @Column(name = "treatment_price")
    private BigDecimal treatmentPrice;
    // 用于购买产品价格(限护肤品)
    @Column(name = "product_price")
    private BigDecimal productPrice;
    // 账户编号
    @Column(name = "account_id")
    private Long accountId;
    // 用户编号
    @Column(name = "user_id")
    private Long userId;
    // 组织机构编号
    @Column(name = "organ_id")
    private Long organId;
    // 组织机构名称
    @Column(name = "organ_name")
    private String organName;
}
